package com.dahuyou.tryy.too.simulate.interpreter.parse.clazz.clazzfile.attributeinfo.impl;

import com.dahuyou.tryy.too.simulate.interpreter.parse.clazz.clazzfile.ClassReader;
import com.dahuyou.tryy.too.simulate.interpreter.parse.clazz.clazzfile.attributeinfo.AttributeInfo;

public class ConstantValueAttribute implements AttributeInfo {

    private int constantValueIdx;

    @Override
    public void readInfo(ClassReader reader) {
//        this.constantValueIdx = reader.readUint16();
        this.constantValueIdx = reader.readU2();
    }

    public int constantValueIdx(){
        return this.constantValueIdx;
    }

}
